package com.bailiban.repository;

import com.bailiban.entity.ProvinceCov;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author zhulang
 * @Classname ProvinceCovRepository
 * @Description TODO
 * @Date 2020/3/18 22:10
 */
public interface ProvinceCovRepository extends JpaRepository<ProvinceCov,Integer> {
    /**
     * 根据省份名称进行查询
     * @param provinceName
     * @return
     */
    ProvinceCov findByProvinceName(String provinceName);

    /**
     * 根据省份邮政编码进行查询
     * @param locationId
     * @return
     */
    ProvinceCov findByLocationId(Integer locationId);
}
